<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加用户</title>
</head>
<body>
<form class="user" name="userAdd" method="post" th:action="@{/userpage/add}" th:object="${user}">
    <input type="hidden" id="id" name="id" th:value="${user?.id}">
    <div >
        <div >
            姓名：
            <input type="text" name="name"  th:value="${user?.name}" placeholder="姓名">

        </div>
    </div>

    <div >
        <div >
            密码：
            <input type="text" name="pwd"   placeholder="密码">
        </div>
        <div >
            phone：
            <input type="text" name="phone"  th:value="${user?.phone}" placeholder="电话">
        </div>
    </div>
    <div >
        <div >
            email：<input type="text"  id="email" name="email" placeholder="标签" th:value="${user?.email}">
        </div>
    </div>

    <input type="submit" value="添加/修改" class="btn btn-success" >
</form>

</body>
</html>